package com.dagit.adapter.logger;

public class LogManager {
	private LogManager(){
		
	}
	public static Logger getLogger(String name){
		Logger logger;
		try {
			logger = (Logger) Class.forName(name).newInstance();
		} catch (Exception e) {
			logger = new DefaultLogger();
			logger.fatal("Logger going down :" + e.getMessage());
		} 
		return logger;
	}

}
